<?php

namespace App\Http\Controllers;

use App\BaseController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;

class UserController extends BaseController
{
    // 用户id
    protected $user_id = 0;

    // 用户数据
    protected $userinfo = [];

    // 缓存系统
    protected $redis;

    // 站点配置
    protected $config;

    // 请求
    protected $request = [];

    public function __construct( Request $request )
    {
        // 初始化redis句柄
        $this->redis = Cache::store( 'redis' );

        // 站点配置读取

        // 请求
        $this->request = $request;
    }
}
